<template>
<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white" v-if="sliderList.length" :height="height">
  <van-swipe-item v-for="item of sliderList">
		<van-image
			width="100%"
			height="100%"
			lazy-load
			:src="item.url"
		/>
	</van-swipe-item>
</van-swipe>

</template>
<script lang="ts" setup>
import {computed} from 'vue'
interface BannerData{
	url:string
}
const props = defineProps<{sliderList: Array<BannerData>,height:string}>();
const sliderList = computed(() => props.sliderList);
const height = computed(() => props.height)
</script>